<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="display" uri="/WEB-INF/tags/displaytag-12.tld"%>
<%@page import="com.opensymphony.module.sitemesh.Page"%>
<html>
<head>
<meta name="tab" content="students" />
<meta name="leftbar-link" content="email-list"/>
<meta name="decorator" content="DefaultLayout"/>
<link href="<s:url value="/webwork/jscalendar/calendar-blue.css" />" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<script>

</script>
<span id="pageHeading">Add New Student<hr/></span>

<s:form name="studentForm" id="studentForm" action="/addStudent.action" method="post">
<s:hidden name="student.id" value="%{student.id}"/>
<table>
<tr>
	<td>First Name*</td>
	<td><s:textfield label="First Name*" id="student.firstName" required="true" name="student.firstName" value="%{student.firstName}"/></td>
	<td>Last Name*</td>
	<td><s:textfield label="Last Name*" id="student.lastName" required="true" name="student.lastName" value="%{student.lastName}"/></td>
</tr>

<tr>
	<td>Fathers Name*</td>
	<td>
<s:textfield label="Fathers Name*" id="student.fathersName" required="true" name="student.fathersName" value="%{student.fathersName}" /></td>
	<td>Contact Number1 *</td>
	<td>
<s:textfield label="Contact Number1" id="student.contactNum1" name="student.contactNum1" value="%{student.contactNum1}" />
</td>
</tr>

<tr>
	<td>Contact Number2</td>
	<td>
<s:textfield label="Contact Number2" id="student.contactNum2" name="student.contactNum2" value="%{student.contactNum2}" />
</td>
	<td>Contact Number3</td>
	<td>
<s:textfield label="Contact Number3" id="student.contactNum3" name="student.contactNum3" value="%{student.contactNum3}" />
</td>
</tr>

<tr>
	<td>Address Line 1</td>
	<td>
<s:textfield label="Address 1" id="student.addressLine1" name="student.addressLine1" value="%{student.addressLine1}" />
</td>
	<td>Address Line 2</td>
	<td>
<s:textfield label="Address 2" id="student.addressLine2" name="student.addressLine2" value="%{student.addressLine2}" />
</td>
</tr>

<tr>
	<td>City</td>
	<td>
<s:textfield id="student.city" name="student.city" value="%{student.city}" />
</td>
	<td>Date of birth</td>
	<td>
<s:datepicker label="Date of birth" id="student.dobStr" name="student.dobStr" value="%{student.dobStr}" 
	maxLength = "10" size="16" format = "%d-%m-%Y" /> 

</td>
</tr>
<tr>
	<td>Date of Admission *</td>
	<td>
<s:datepicker id="student.dateOfAddmissionStr" name="student.dateOfAddmissionStr" value="%{student.dateOfAddmissionStr}" 
	maxLength = "10" size="16" format = "%d-%m-%Y" /> 
</td>

	<td>School Name</td>
	<td>
<s:textfield id="student.schoolName" name="student.schoolName" value="%{student.schoolName}" /></td>

</tr>

<tr>
	<td colspan="4" align="center"><s:submit theme="simple" id="submitBtn" value="Add" cssClass="orange"/>
</td>
</tr>

</table>

<p>

</s:form>
</body>
</html>
